package cn.edu.jxyy.batistest.test;

import cn.edu.jxyy.batistest.mapper.PersonMapper;
import cn.edu.jxyy.batistest.pojo.Person;
import cn.edu.jxyy.batistest.utils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

public class Part19_TestN2N {
    public static  void findOrdersTest() {
        SqlSession sqlSession = MyBatisUtils.getSession();
        PersonMapper personMapper =  sqlSession.getMapper(PersonMapper.class);
        Person person = personMapper.findPersonById(1);
        System.out.println(person);
    }
    public static void main(String[] args){
        findOrdersTest();
    }
}
